package com.shuma.shopmanage.draftmodule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shuma.shopmanage.model.draft.model.GoodsDraft;
import com.shuma.shopmanage.model.draft.model.vo.GoodsDraftVo;
import com.shuma.shopmanage.model.shop.dto.GoodsDto;
import com.shuma.shopmanage.model.shop.dto.PageDto;
import com.shuma.shopmanage.model.shop.vo.GoodsVo;
import com.shuma.shopmanage.model.shop.vo.PageVo;

import java.util.List;


public interface GoodsDraftService extends IService<GoodsDraft> {
    public GoodsVo insertGoodDraft(GoodsDto good);

    PageVo<GoodsDraftVo> queryPage(PageDto pageDto);

    PageVo<GoodsDraftVo> queryPageByUid(PageDto pageDto, Long id);

    void deleteByIdWithUid(Long id, Long userId);

    void deleteByIdsWithUid(List<Long> ids, Long userId);

    GoodsDraft goodsEditing(Long draftId,Long userId);
}
